<?php

/**
 *  FriendFacade Class
 *
 *  
 *  @author     Vinod Kumar
 *  @package    Project Name
 *
 */

class FriendFacade extends MainFacade {
	
	private $friendService;
	
	/**
     *  __construct
     *
     *  Instantiate FriendService Object
     */
	public function __construct() {
	    
		$this->friendService = new FriendService();
	}/* END __construct */
	
	/**
     *  fetchFriendByUserId
     *
     *  select all freinds of that user
     * 
     * @param   integer  variable    user id
     * @return  array   retArray    all freinds of that user
     * 
     */
    public function fetchFriendByUserId($userId) {
        
        //call a query from Friend Service class object to fetch all friends & return it    
        $retArray = array("result"=>false, "message"=>'');
        return $retArray;        
    }/* END fetchFriendByUserId */
    
    /**
     *  inviteFriend
     *
     *  invite to the external friends
     * 
     * @param   array   post        email ids
     * @return  array   retArray    bool result & message
     * 
     */
	public function inviteFriend($post) {
		
	    $retArray = array("result"=>false, "message"=>'');
		return $retArray;		
	}/* END inviteFriend */
	
	
    /**
     *  sendFriendRequest
     *
     *  send friend request to the site user.
     * 
     * @param   array   data        user ids
     * @return  array   retArray    bool result & message
     * 
     */
	public function sendFriendRequest($post) {
	    
	    $retArray = array("result"=>false, "message"=>'');
		
		return $retArray;
	} /* END sendFriendRequest */  
	
	
    /**
     *  acceptFriend
     *
     *  accept friend request
     * 
     * @param   int     userId      User Id
     * @return  array   retArray    bool result & message 
     */
	public function acceptFriend($userId) {

	    //accept the friend request
	} /* END acceptFriend */ 
    

    /**
     *  delFriend
     *
     *  Delete a friend
     * 
     * @param   array   post        all user ids of friends which will be deleted.
     * @return  array   retArray    bool result & message
     * 
     */
    public function delFriend($post) {
        
    }/* END delFriend */
  
}/*END ScrapFacade*/
?>